<div class="uinformations view">
    <h2><?php __('Full Personal information'); ?></h2>

    <?php if (!empty($uinformation)) {
    ?>
    <div style="height:28px;"></div>
    <?php /* if($session->read('Auth.User.role')!=1)
          echo $this->Html->link(__('Edit', true), array('action' => 'edit', $uinformation['Uinformation']['id'])); */ ?>
        <dl><?php $i = 0;
        $class = ' class="altrow"'; ?>
<?php if(strlen($uinformation['Uinformation']['photo'])>0){?>
            <dt></dt>
		<dd >
			<?php  echo $html->image("/img/photo/".$uinformation['Uinformation']['photo'],array('width'=>'200px','border'=>'3px')); ?>
			&nbsp;
		</dd>
                <?php
}
                ?>
        <dt<?php if ($i % 2 == 0)
            echo $class; ?>><?php __('Full Name:'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?> >
                <?php echo $uinformation['User']['fullname']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Father Name:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['fathername']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Mother Name:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['mothername']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Date of birth:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['datebirth']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('E-mail:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['User']['username']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Joining date:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['joiningdate']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Gradation number:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['gradationnumber']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Religion:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['religion']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Faction:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['faction']; ?>
            &nbsp;
        </dd>

        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Nature of employment:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['natureemployment']; ?>
            &nbsp;
        </dd>

        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Nationality:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['nationality']; ?>
            &nbsp;
        </dd>

        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Gender:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['gender']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Marital status:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['maritalstatus']; ?>
            &nbsp;
        </dd>

        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Freedom fighter:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['freedomfighter']; ?>
            &nbsp;
        </dd>
        <!-- <dt<?php //if ($i % 2 == 0) echo $class;  ?>><?php //__('Photo');   ?></dt>
		<dd<?php //if ($i++ % 2 == 0) echo $class;?>>
        <?php //echo $uinformation['Uinformation']['photo'];  ?>
        			&nbsp;
        		</dd> -->
                <div><h2><?php __('For Cadre Officers:'); ?></h2></div>

                <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Cadre name:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['cadrename']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Batch Number:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['batch']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Date of encadrement:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['dateofencadrement']; ?>
            &nbsp;
        </dd>
        <div><h2><?php __('Permanent Address:'); ?></h2></div>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Village:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['village']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Post office:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['postoffice']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Upazilla:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['upazilla']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('District:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['district']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Post code:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['postcode']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Police station:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['policestation']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Mobile:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['mobile']; ?>
            &nbsp;
        </dd>
        <div><h2><?php __('Spouse Information:'); ?></h2></div>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Spouse name:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['sname']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Spouse date of birth:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['sdateofbirth']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Spouse occupation:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['soccupation']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Spouse designation:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['sdesignation']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Spouse organization:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['sorganization']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Spouse posting place:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
                <?php echo $uinformation['Uinformation']['spostingplace']; ?>
            &nbsp;
        </dd>
    </dl>
    <?php
            }else {
    ?>
    <?php
                if ($session->read('Auth.User.role') != 1)
                    echo $this->Html->link(__('Please click here to add your information', true), array('action' => 'add'));
                else
                    echo "no info found!";
    ?>
    <?php
            }
    ?>
        </div>
        <div class="actions">
    <?php echo $this->element('leftmenu'); ?>
        </div>
        <div class="children index">
            <h2><?php __('Children Information'); ?></h2>

            <table cellpadding="0" cellspacing="0">
                <tr>
                    <th>SL<?php //echo $this->Paginator->sort('id'); ?></th>
                    <th>Name<?php //echo $this->Paginator->sort('Name'); ?></th>
                    <th>Gender<?php //echo $this->Paginator->sort('Gender'); ?></th>
                    <th>Date of Birth<?php //echo $this->Paginator->sort('Date of Birth'); ?></th>
                    <th>Marital Status<?php //echo $this->Paginator->sort('Marital Status'); ?></th>
                    <th>Disable<?php //echo $this->Paginator->sort('Disable'); ?></th>
                    <!-- <th><?php //echo $this->Paginator->sort('user_id'); ?></th>
                    <th><?php //echo $this->Paginator->sort('created');  ?></th>
                    <th><?php //echo $this->Paginator->sort('modified');  ?></th> -->

                </tr>
        <?php
            $i = 0;
            foreach ($children as $child):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
        ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $i; //echo $child['Child']['id'];  ?>&nbsp;</td>
                    <td><?php echo $child['Child']['name']; ?>&nbsp;</td>
                    <td><?php echo $child['Child']['gender']; ?>&nbsp;</td>
                    <td><?php echo date('d-M-Y', strtotime($child['Child']['dateofbirth'])); ?>&nbsp;</td>
                    <td><?php echo $child['Child']['maritalstatus']; ?>&nbsp;</td>
                    <td><?php echo $child['Child']['disable']; ?>&nbsp;</td>
                    <!-- <td>
            <?php //echo $this->Html->link($child['User']['id'], array('controller' => 'users', 'action' => 'view', $child['User']['id'])); ?>
            		</td>
                    <td><?php //echo $child['Child']['created'];  ?>&nbsp;</td>
                    <td><?php //echo $child['Child']['modified'];  ?>&nbsp;</td> -->

            </tr>
        <?php endforeach; ?>
            </table>
            <p>
        <?php
                /* echo $this->Paginator->counter(array(
                  'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                  )); */
        ?>	</p>

            <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled')); ?>
                    	 | 	<?php //echo $this->Paginator->numbers(); ?>
            |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
                    	</div> -->
            </div>
            <div class="languages index">
                <h2><?php __('Languages'); ?></h2>

                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <th>SL<?php //echo $this->Paginator->sort('id'); ?></th>
                        <th>Languages<?php //echo $this->Paginator->sort('Languages'); ?></th>
                        <th>read<?php //echo $this->Paginator->sort('read');  ?></th>
                        <th>write<?php //echo $this->Paginator->sort('write');  ?></th>
                        <th>speak<?php //echo $this->Paginator->sort('speak');  ?></th>


                    </tr>
        <?php
                $i = 0;
                foreach ($languages as $language):
                    $class = null;
                    if ($i++ % 2 == 0) {
                        $class = ' class="altrow"';
                    }
        ?>
                    <tr<?php echo $class; ?>>
                        <td><?php echo $i; //echo $language['Language']['id'];  ?>&nbsp;</td>
                        <td><?php echo $language['Language']['Languages']; ?>&nbsp;</td>
                        <td><?php echo $language['Language']['read']; ?>&nbsp;</td>
                        <td><?php echo $language['Language']['write']; ?>&nbsp;</td>
                        <td><?php echo $language['Language']['speak']; ?>&nbsp;</td>


                    </tr>
        <?php endforeach; ?>
                </table>
                <p>
        <?php
                    /* echo $this->Paginator->counter(array(
                      'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                      )); */
        ?>	</p>

                <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled')); ?>
                        	 | 	<?php //echo $this->Paginator->numbers(); ?>
                |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
                        	</div> -->
                </div>


                <div class="educations index">
                    <h2><?php __('Educational Qualifications'); ?></h2>

                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <th>SL<?php //echo $this->Paginator->sort('id'); ?></th>
                            <th>degree<?php //echo $this->Paginator->sort('degree'); ?></th>
                            <th>school<?php //echo $this->Paginator->sort('school'); ?></th>
                            <th>subject<?php //echo $this->Paginator->sort('subject'); ?></th>
                            <th>board<?php //echo $this->Paginator->sort('board'); ?></th>
                            <th>year<?php //echo $this->Paginator->sort('year'); ?></th>
                            <th>division<?php //echo $this->Paginator->sort('division'); ?></th>

                        </tr>
        <?php
                    $i = 0;
                    foreach ($educations as $education):
                        $class = null;
                        if ($i++ % 2 == 0) {
                            $class = ' class="altrow"';
                        }
        ?>
                        <tr<?php echo $class; ?>>
                            <td><?php echo $i; //echo $education['Education']['id'];  ?>&nbsp;</td>
                            <td><?php echo $education['Education']['degree']; ?>&nbsp;</td>
                            <td><?php echo $education['Education']['school']; ?>&nbsp;</td>
                            <td><?php echo $education['Education']['subject']; ?>&nbsp;</td>
                            <td><?php echo $education['Education']['board']; ?>&nbsp;</td>
                            <td><?php echo $education['Education']['year']; ?>&nbsp;</td>
                            <td><?php echo $education['Education']['division']; ?>&nbsp;</td>

                        </tr>
        <?php endforeach; ?>
                    </table>
                    <p>
        <?php
                        /* echo $this->Paginator->counter(array(
                          'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                          )); */
        ?>	</p>

                    <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled')); ?>
                                    	 | 	<?php //echo $this->Paginator->numbers(); ?>
                    |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
                                    	</div> -->

                    </div>

                    <div class="travels index">
                        <h2><?php __('Foreign Travels(Including Seminar/Workshop/Study Tour/Conference Attended.)'); ?></h2>

                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <th><?php //echo $this->Paginator->sort('id');  ?></th>
                                <th>Country<?php //echo $this->Paginator->sort('country'); ?></th>
                                <th>Purpose Visit<?php //echo $this->Paginator->sort('Purpose Visit'); ?></th>
                                <th>Date from<?php //echo $this->Paginator->sort('date from');  ?></th>
                                <th>Date to<?php //echo $this->Paginator->sort('date to');  ?></th>

                            </tr>
        <?php
                        $i = 0;
                        foreach ($travels as $travel):
                            $class = null;
                            if ($i++ % 2 == 0) {
                                $class = ' class="altrow"';
                            }
        ?>
                            <tr<?php echo $class; ?>>
                                <td><?php echo $i; //echo $travel['Travel']['id'];   ?>&nbsp;</td>
                                <td><?php echo $travel['Travel']['country']; ?>&nbsp;</td>
                                <td><?php echo $travel['Travel']['purposevisit']; ?>&nbsp;</td>
                                <td><?php echo $travel['Travel']['datefrom']; ?>&nbsp;</td>
                                <td><?php echo $travel['Travel']['dateto']; ?>&nbsp;</td>

                            </tr>
        <?php endforeach; ?>
                        </table>
                        <p>
        <?php
                            /* echo $this->Paginator->counter(array(
                              'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                              )); */
        ?>	</p>

                        <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
                                        	 | 	<?php //echo $this->Paginator->numbers();?>
                        |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
                                        	</div> -->
                        </div>
                        <div class="index">
                            <dl>  <dt<?php if ($i % 2 == 0)
                                echo $class; ?>><?php __('Additional Qualification(Extra Curriculum):'); ?></dt>
                        <dd<?php if ($i++ % 2 == 0)
                                echo $class; ?>style="margin-left: 346px;">
        <?php echo $uinformation['Uinformation']['addqualification']; ?>
                                &nbsp;
                        </dd> </dl></div>
                    <div class="publications index">
                        <h2><?php __('Publications'); ?></h2>

                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <th>SL<?php //echo $this->Paginator->sort('id'); ?></th>
                                <th>Type of Publication<?php //echo $this->Paginator->sort('typeofpublication');  ?></th>
                                <th>Title<?php //echo $this->Paginator->sort('title');  ?></th>
                                <th>Published by<?php //echo $this->Paginator->sort('publishedby'); ?></th>
                                <th>Date<?php //echo $this->Paginator->sort('date');  ?></th>

                            </tr>
        <?php
                            $i = 0;
                            foreach ($publications as $publication):
                                $class = null;
                                if ($i++ % 2 == 0) {
                                    $class = ' class="altrow"';
                                }
        ?>
                                <tr<?php echo $class; ?>>
                                    <td><?php echo $i; ?>&nbsp;</td>
                                    <td><?php echo $publication['Publication']['typeofpublication']; ?>&nbsp;</td>
                                    <td><?php echo $publication['Publication']['title']; ?>&nbsp;</td>
                                    <td><?php echo $publication['Publication']['publishedby']; ?>&nbsp;</td>
                                    <td><?php echo $publication['Publication']['date']; ?>&nbsp;</td>

                                </tr>
        <?php endforeach; ?>
                            </table>

                        </div>
                        <div class="awards index">
                            <h2><?php __('Honor/Awards'); ?></h2>

                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <th>SL<?php //echo $this->Paginator->sort('id');  ?></th>
                                    <th>Name<?php //echo $this->Paginator->sort('name');  ?></th>
                                    <th>Date<?php //echo $this->Paginator->sort('date');  ?></th>

                                </tr>
        <?php
                                $i = 0;
                                foreach ($awards as $award):
                                    $class = null;
                                    if ($i++ % 2 == 0) {
                                        $class = ' class="altrow"';
                                    }
        ?>
                                    <tr<?php echo $class; ?>>
                                        <td><?php echo $i; ?>&nbsp;</td>
                                        <td><?php echo $award['Award']['name']; ?>&nbsp;</td>
                                        <td><?php echo $award['Award']['date']; ?>&nbsp;</td>

                                    </tr>
        <?php endforeach; ?>
                                </table>

                            </div>
                            <div class="otherservices index">
                                <h2><?php __('Other services'); ?></h2>

                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <th>SL<?php //echo $this->Paginator->sort('id');  ?></th>
                                        <th>Organization<?php //echo $this->Paginator->sort('organization');  ?></th>
                                        <th>Address<?php //echo $this->Paginator->sort('address');  ?></th>
                                        <th>Type<?php //echo $this->Paginator->sort('type');  ?></th>
                                        <th>Designation<?php //echo $this->Paginator->sort('designation');  ?></th>
                                        <th>From Date<?php //echo $this->Paginator->sort('from');  ?></th>
                                        <th>To Date<?php //echo $this->Paginator->sort('to');  ?></th>
                            <!--			<th><?php //echo $this->Paginator->sort('user_id');  ?></th>-->

                                    </tr>
        <?php
                                    $i = 0;
                                    foreach ($otherservices as $otherservice):
                                        $class = null;
                                        if ($i++ % 2 == 0) {
                                            $class = ' class="altrow"';
                                        }
        ?>
                                        <tr<?php echo $class; ?>>
                                            <td><?php echo $i; ?>&nbsp;</td>
                                            <td><?php echo $otherservice['Otherservice']['organization']; ?>&nbsp;</td>
                                            <td><?php echo $otherservice['Otherservice']['address']; ?>&nbsp;</td>
                                            <td><?php echo $otherservice['Otherservice']['type']; ?>&nbsp;</td>
                                            <td><?php echo $otherservice['Otherservice']['designation']; ?>&nbsp;</td>
                                            <td><?php echo $otherservice['Otherservice']['from']; ?>&nbsp;</td>
                                            <td><?php echo $otherservice['Otherservice']['to']; ?>&nbsp;</td>
                                <!--		<td>
            <?php //echo $this->Html->link($otherservice['User']['id'], array('controller' => 'users', 'action' => 'view', $otherservice['User']['id'])); ?>
                                                                            		</td>-->

                                    </tr>
        <?php endforeach; ?>
                                    </table>
                                    <p>
        <?php
                                        /* echo $this->Paginator->counter(array(
                                          'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                                          )); */
        ?>	</p>


                                </div>
                                <div class="recreations index">
                                    <h2><?php __('Recreation Information'); ?></h2>

                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <th>SL<?php //echo $this->Paginator->sort('id');  ?></th>
                                            <th>Last Drawn<?php //echo $this->Paginator->sort('lastdrawn');  ?></th>
                                            <th>Date From<?php //echo $this->Paginator->sort('datefrom');  ?></th>
                                            <th>Date To<?php //echo $this->Paginator->sort('dateto');  ?></th>
                                            <!-- <th><?php //echo $this->Paginator->sort('user_id');  ?></th>
                                            <th><?php //echo $this->Paginator->sort('created');  ?></th>
                                            <th><?php //echo $this->Paginator->sort('modified');  ?></th> -->

                                        </tr>
        <?php
                                        $i = 0;
                                        foreach ($recreations as $recreation):
                                            $class = null;
                                            if ($i++ % 2 == 0) {
                                                $class = ' class="altrow"';
                                            }
        ?>
                                            <tr<?php echo $class; ?>>
                                                <td><?php echo $i; //echo $recreation['Recreation']['id'];   ?>&nbsp;</td>
                                                <td><?php echo $recreation['Recreation']['lastdrawn']; ?>&nbsp;</td>
                                                <td><?php echo date('d-M-Y', strtotime($recreation['Recreation']['datefrom'])); ?>&nbsp;</td>
                                                <td><?php echo date('d-M-Y', strtotime($recreation['Recreation']['dateto'])); ?>&nbsp;</td>

                                            </tr>
        <?php endforeach; ?>
                                        </table>
                                        <p>
        <?php
                                            /* echo $this->Paginator->counter(array(
                                              'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                                              )); */
        ?>	</p>

                                        <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled')); ?>
                                                                                                        	 | 	<?php //echo $this->Paginator->numbers(); ?>
                                        |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
                                        	</div> -->
                                        </div>
<div class="tinformations index">
                                                                    <h2><?php __('Training Informations(Both Foreign & Local)'); ?></h2>

                                                                    <table cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <th>SL<?php //echo $this->Paginator->sort('id');  ?></th>
                                                                            <th>Course title<?php //echo $this->Paginator->sort('Course title');  ?></th>
                                                                            <th>Institute<?php //echo $this->Paginator->sort('institute');  ?></th>
                                                                            <th>Date from<?php //echo $this->Paginator->sort('date from'); ?></th>
                                                                            <th>Date to<?php //echo $this->Paginator->sort('date to'); ?></th>
                                                                            <th>Grade<?php //echo $this->Paginator->sort('grade'); ?></th>
                                                                            <th>position<?php //echo $this->Paginator->sort('position'); ?></th>
                                                                            <th>country<?php //echo $this->Paginator->sort('country'); ?></th>
                                                                            <th>place<?php //echo $this->Paginator->sort('place'); ?></th>

                                                                        </tr>
       <tr><td colspan="10" align="left">Foreign Training:</td></tr>
        <?php
	$i = 0;
        $c=1;

	foreach ($tinformations as $tinformation):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
                if(($tinformation['Tinformation']['flag']==1 AND $c==1))
                {?>
        <tr><td colspan="10" align="left">Local Training:</td></tr>
        <?php
        $c++;

                }
	?>
                                                                    <tr<?php echo $class; ?>>
                                                                        <td><?php echo $i; //echo $child['Child']['id'];   ?>&nbsp;</td>
                                                                        <td><?php echo $tinformation['Tinformation']['coursetitle']; ?>&nbsp;</td>
                                                                        <td><?php echo $tinformation['Tinformation']['institute']; ?>&nbsp;</td>
                                                                        <td><?php echo $tinformation['Tinformation']['datefrom']; ?>&nbsp;</td>
                                                                        <td><?php echo $tinformation['Tinformation']['dateto']; ?>&nbsp;</td>
                                                                        <td><?php echo $tinformation['Tinformation']['grade']; ?>&nbsp;</td>
                                                                        <td><?php echo $tinformation['Tinformation']['position']; ?>&nbsp;</td>
                                                                        <td><?php echo $tinformation['Tinformation']['country']; ?>&nbsp;</td>
                                                                        <td><?php echo $tinformation['Tinformation']['place']; ?>&nbsp;</td>


                                                                    </tr>
        <?php endforeach; ?>
                                                                </table>
                                                                <p>
        <?php
                                                                    /* echo $this->Paginator->counter(array(
                                                                      'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                                                                      )); */
        ?>	</p>

                                                                <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled')); ?>
                                                                                                                        	 | 	<?php //echo $this->Paginator->numbers(); ?>
                                                                |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
                                                                                                                        	</div> -->
                                                                </div>

<div class="index" ><dl><dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Professional membership Information:'); ?></dt>
            <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?> style="margin-left:346px;">
                <?php echo $uinformation['Uinformation']['professionalmember']; ?>
            &nbsp;
        </dd></dl></div>

<div class="services index">
                                                    <h2><?php __('Service History'); ?></h2>

                                                    <table cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <th>SL<?php //echo $this->Paginator->sort('id'); ?></th>
                                                            <th>Date of Entry<?php //echo $this->Paginator->sort('Date of Entry'); ?></th>
                                                            <th>Entry post<?php //echo $this->Paginator->sort('Entry post'); ?></th>
                                                            <th>Date of Gazatted<?php //echo $this->Paginator->sort('Date of Gazatted'); ?></th>
                                                            <th>class<?php //echo $this->Paginator->sort('class'); ?></th>
                                                            <th>Date of Encadrement<?php //echo $this->Paginator->sort('Date of Encadrement'); ?></th>
                                                            <th>Name Cadre<?php //echo $this->Paginator->sort('Name Cadre'); ?></th>

                                                        </tr>
        <?php
                                                        $i = 0;
                                                        foreach ($services as $service):
                                                            $class = null;
                                                            if ($i++ % 2 == 0) {
                                                                $class = ' class="altrow"';
                                                            }
        ?>
                                                            <tr<?php echo $class; ?>>
                                                                <td><?php echo $i; //echo $service['Service']['id'];   ?>&nbsp;</td>
                                                                <td><?php echo $service['Service']['dateofentry']; ?>&nbsp;</td>
                                                                <td><?php echo $service['Service']['entrypost']; ?>&nbsp;</td>
                                                                <td><?php echo $service['Service']['dategazatted']; ?>&nbsp;</td>
                                                                <td><?php echo $service['Service']['class']; ?>&nbsp;</td>
                                                                <td><?php echo $service['Service']['dateofencadrement']; ?>&nbsp;</td>
                                                                <td><?php echo $service['Service']['namecadre']; ?>&nbsp;</td>

                                                            </tr>
        <?php endforeach; ?>
                                                        </table>
                                                        <p>
        <?php
                                                            /* echo $this->Paginator->counter(array(
                                                              'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                                                              )); */
        ?>	</p>

                                                        <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
                                                                                                            	 | 	<?php //echo $this->Paginator->numbers();?>
                                                            |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
                                                                                                            	</div> -->
                                                        </div>

<div class="promotions index">
                                                                <h2><?php __('Promotions'); ?></h2>

                                                                <table cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <th>SL<?php //echo $this->Paginator->sort('id');  ?></th>
                                                                        <th>Date of Promotion<?php //echo $this->Paginator->sort('Date of Promotion');  ?></th>
                                                                        <th>Rank/Post<?php //echo $this->Paginator->sort('Rank/Post');  ?></th>
                                                                        <th>Pay scale to which Promoted<?php //echo $this->Paginator->sort('Pay scale to which Promoted'); ?></th>
                                                                        <th>previous pay scale to which promoted<?php //echo $this->Paginator->sort('previous pay scale to which promoted'); ?></th>
                                                                        <th>Nature of promotion<?php //echo $this->Paginator->sort('Nature of promotion'); ?></th>
                                                                        <!-- <th><?php //echo $this->Paginator->sort('user_id'); ?></th>
                                                                        <th><?php //echo $this->Paginator->sort('created'); ?></th>
                                                                        <th><?php //echo $this->Paginator->sort('modified'); ?></th> -->

                                                                    </tr>
        <?php
                                                            $i = 0;
                                                            foreach ($promotions as $promotion):
                                                                $class = null;
                                                                if ($i++ % 2 == 0) {
                                                                    $class = ' class="altrow"';
                                                                }
        ?>
                                                                <tr<?php echo $class; ?>>
                                                                    <td><?php $i; ?>&nbsp;</td>
                                                                    <td><?php echo date('d-M-Y', strtotime($promotion['Promotion']['dateofpromotion'])); ?>&nbsp;</td>
                                                                    <td><?php echo $promotion['Promotion']['rankpost']; ?>&nbsp;</td>
                                                                    <td><?php echo $promotion['Promotion']['payscale']; ?>&nbsp;</td>
                                                                    <td><?php echo $promotion['Promotion']['prepayscale']; ?>&nbsp;</td>
                                                                    <td><?php echo $promotion['Promotion']['naturepromotion']; ?>&nbsp;</td>
                                                                    <!-- <td>
            <?php //echo $this->Html->link($promotion['User']['id'], array('controller' => 'users', 'action' => 'view', $promotion['User']['id'])); ?>
                                                                                                    		</td>
                                                                <td><?php //echo $promotion['Promotion']['created'];  ?>&nbsp;</td>
                                                                <td><?php //echo $promotion['Promotion']['modified'];  ?>&nbsp;</td> -->

                                                            </tr>
        <?php endforeach; ?>
                                                            </table>
                                                            <p>
        <?php
                                                                /* echo $this->Paginator->counter(array(
                                                                  'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                                                                  )); */
        ?>	</p>

                                                            <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled')); ?>
                                                                                                                	 | 	<?php //echo $this->Paginator->numbers(); ?>
                                                            |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
                                                                                                                	</div> -->
                                                            </div>

                                        <div class="deptexams index">
                                            <h2><?php __('Departmental Examinations'); ?></h2>

                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <th>SL<?php //echo $this->Paginator->sort('id'); ?></th>
                                                    <th>Exam Title<?php ///echo $this->Paginator->sort('Exam Title'); ?></th>
                                                    <th>Date Passing<?php //echo $this->Paginator->sort('Date Passing');  ?></th>
                                                    <!-- <th><?php //echo $this->Paginator->sort('user_id');  ?></th> -->
                                                    <!-- <th><?php //echo $this->Paginator->sort('created');  ?></th>
                                                    <th><?php //echo $this->Paginator->sort('modified');  ?></th> -->

                                                </tr>
        <?php
                                            $i = 0;
                                            foreach ($deptexams as $deptexam):
                                                $class = null;
                                                if ($i++ % 2 == 0) {
                                                    $class = ' class="altrow"';
                                                }
        ?>
                                                <tr<?php echo $class; ?>>
                                                    <td><?php echo $i; ?>&nbsp;</td>
                                                    <td><?php echo $deptexam['Deptexam']['examtitle']; ?>&nbsp;</td>
                                                    <td><?php echo date('d-M-Y', strtotime($deptexam['Deptexam']['datepassing'])); ?>&nbsp;</td>
                                                    <!-- <td>
            <?php //echo $this->Html->link($deptexam['User']['id'], array('controller' => 'users', 'action' => 'view', $deptexam['User']['id']));  ?>
                                                            		</td> -->
                                                <!-- <td><?php //echo $deptexam['Deptexam']['created'];   ?>&nbsp;</td>
                                                <td><?php //echo $deptexam['Deptexam']['modified'];   ?>&nbsp;</td> -->

                                            </tr>
        <?php endforeach; ?>
                                            </table>
                                            <p>
        <?php
                                                /* echo $this->Paginator->counter(array(
                                                  'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                                                  )); */
        ?>	</p>


                                        </div>

                                        <div class="seniorscalexams index">
                                            <h2><?php __('Senior scale examinations'); ?></h2>

                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <th>SL<?php //echo $this->Paginator->sort('id');  ?></th>
                                                    <th>Exam Title<?php //echo $this->Paginator->sort('Exam Title');  ?></th>
                                                    <th>Date Passing<?php //echo $this->Paginator->sort('Date Passing');  ?></th>
                                                    <!-- <th><?php //echo $this->Paginator->sort('user_id');  ?></th>
                                                    <th><?php //echo $this->Paginator->sort('created');  ?></th>
                                                    <th><?php //echo $this->Paginator->sort('modified'); ?></th> -->

                                                </tr>
        <?php
                                                $i = 0;
                                                foreach ($seniorscalexams as $seniorscalexam):
                                                    $class = null;
                                                    if ($i++ % 2 == 0) {
                                                        $class = ' class="altrow"';
                                                    }
        ?>
                                                    <tr<?php echo $class; ?>>
                                                        <td><?php echo $i; ?>&nbsp;</td>
                                                        <td><?php echo $seniorscalexam['Seniorscalexam']['examtitle']; ?>&nbsp;</td>
                                                        <td><?php echo date('d-M-Y', strtotime($seniorscalexam['Seniorscalexam']['datepassing'])); ?>&nbsp;</td>
                                                        <!-- <td>
            <?php //echo $this->Html->link($seniorscalexam['User']['id'], array('controller' => 'users', 'action' => 'view', $seniorscalexam['User']['id']));  ?>
                                                                		</td>
                                                    <td><?php //echo $seniorscalexam['Seniorscalexam']['created'];   ?>&nbsp;</td>
                                                    <td><?php //echo $seniorscalexam['Seniorscalexam']['modified'];   ?>&nbsp;</td> -->

                                                </tr>
        <?php endforeach; ?>
                                                </table>
                                                <p>
        <?php
                                                    /* echo $this->Paginator->counter(array(
                                                      'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                                                      )); */
        ?>	</p>

                                                <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled')); ?>
                                                                        	 | 	<?php //echo $this->Paginator->numbers(); ?>
                                                |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
                                                                        	</div> -->
                                                </div>

                                                <div class="deputations index">
                                                    <h2><?php __('Deputations'); ?></h2>

                                                    <table cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <th>SL<?php //echo $this->Paginator->sort('id');  ?></th>
                                                            <th>Designation<?php //echo $this->Paginator->sort('designation');  ?></th>
                                                            <th>Organization<?php //echo $this->Paginator->sort('organization');  ?></th>
                                                            <th>Country<?php //echo $this->Paginator->sort('country');  ?></th>
                                                            <th>Source of fund<?php //echo $this->Paginator->sort('sourceoffund');  ?></th>
                                                            <th>From<?php //echo $this->Paginator->sort('from');  ?></th>
                                                            <th>To<?php //echo $this->Paginator->sort('to');  ?></th>

                                                        </tr>
        <?php
                                                    $i = 0;
                                                    foreach ($deputations as $deputation):
                                                        $class = null;
                                                        if ($i++ % 2 == 0) {
                                                            $class = ' class="altrow"';
                                                        }
        ?>
                                                        <tr<?php echo $class; ?>>
                                                            <td><?php echo $i; ?>&nbsp;</td>
                                                            <td><?php echo $deputation['Deputation']['designation']; ?>&nbsp;</td>
                                                            <td><?php echo $deputation['Deputation']['organization']; ?>&nbsp;</td>
                                                            <td><?php echo $deputation['Deputation']['country']; ?>&nbsp;</td>
                                                            <td><?php echo $deputation['Deputation']['sourceoffund']; ?>&nbsp;</td>
                                                            <td><?php echo $deputation['Deputation']['from']; ?>&nbsp;</td>
                                                            <td><?php echo $deputation['Deputation']['to']; ?>&nbsp;</td>

                                                        </tr>
        <?php endforeach; ?>
                                                    </table>

                                                </div>

<?php
/////promotion
?>
                                                            
<?php
////////training
?>
                                                                


                                                                <div class="precords index">
                                                                    <h2><?php __('Posting Records(Starting from current post)'); ?></h2>

                                                                    <table cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <th>SL<?php //echo $this->Paginator->sort('id');  ?></th>
                                                                            <th>Post<?php //echo $this->Paginator->sort('post');  ?></th>
                                                                            <th>organization<?php //echo $this->Paginator->sort('organization');  ?></th>
                                                                            <th>Place of Posting<?php //echo $this->Paginator->sort('Place of Posting');  ?></th>
                                                                            <th>Date From<?php //echo $this->Paginator->sort('Date From');  ?></th>
                                                                            <th>Date To<?php //echo $this->Paginator->sort('Date To'); ?></th>
                                                                            <th>Pay Scale<?php //echo $this->Paginator->sort('Pay Scale'); ?></th>
                                                                            <th>Pay(last drawn)<?php //echo $this->Paginator->sort('Pay(last drawn)'); ?></th>
                                                                            <!-- <th><?php //echo $this->Paginator->sort('user_id'); ?></th>
                                                                            <th><?php //echo $this->Paginator->sort('created'); ?></th>
                                                                            <th><?php //echo $this->Paginator->sort('modified'); ?></th> -->

                                                                        </tr>
        <?php
                                                                    $i = 0;
                                                                    foreach ($precords as $precord):
                                                                        $class = null;
                                                                        if ($i++ % 2 == 0) {
                                                                            $class = ' class="altrow"';
                                                                        }
        ?>
                                                                        <tr<?php echo $class; ?>>
                                                                            <td><?php echo $i; ?>&nbsp;</td>
                                                                            <td><?php echo $precord['Precord']['post']; ?>&nbsp;</td>
                                                                            <td><?php echo $precord['Precord']['organization']; ?>&nbsp;</td>
                                                                            <td><?php echo $precord['Precord']['placeofposting']; ?>&nbsp;</td>
                                                                            <td><?php echo date('d-M-Y', strtotime($precord['Precord']['datefrom'])); ?>&nbsp;</td>
                                                                            <td><?php echo date('d-M-Y', strtotime($precord['Precord']['dateto'])); ?>&nbsp;</td>
                                                                            <td><?php echo $precord['Precord']['payscale']; ?>&nbsp;</td>
                                                                            <td><?php echo $precord['Precord']['paylastdrawn']; ?>&nbsp;</td>
                                                                            <!-- <td>
            <?php //echo $this->Html->link($precord['User']['id'], array('controller' => 'users', 'action' => 'view', $precord['User']['id'])); ?>
                                                                                                                        		</td>
                                                                            <td><?php //echo $precord['Precord']['created'];  ?>&nbsp;</td>
                                                                            <td><?php //echo $precord['Precord']['modified'];  ?>&nbsp;</td> -->

                                                                    </tr>
        <?php endforeach; ?>
                                                                    </table>
                                                                    <p>
        <?php
                                                                        /* echo $this->Paginator->counter(array(
                                                                          'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                                                                          )); */
        ?>	</p>

                                                                    <!-- <div class="paging">
    <?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled')); ?>
                                                                                                                                	 | 	<?php //echo $this->Paginator->numbers(); ?>
                                                                    |
    <?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
                                                            	</div> -->
</div>





